// let defaultCity = '上海'
export default {
    state: {
        selectedCity: '',
        data: {}
    },
    mutations: {
        getCityData(state, e) {
            state.data = e
            state.selectedCity = e.mapCities[0].name
        },
        changeCity(state, e) {
            state.selectedCity = e
            localStorage.setItem('selectAdress', e)
        }
    },
    getters: {

    },
    actions: {

    }
}